package com.item.mapper;

import com.item.domain.TbUserComment;
import com.item.domain.TbUserCommentInit;
import com.item.dto.CommentDto;
import com.item.po.TbUserCommentInitPo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface TbUserCommentInitMapper extends Mapper<TbUserCommentInit> {

    List<TbUserCommentInit> findAll(TbUserCommentInit tbUserCommentInit);

    TbUserCommentInit findStatus(CommentDto commentDto);

    List<TbUserCommentInitPo> tbUserCommentInitGet(@Param("id") int id);

    List<TbUserCommentInitPo> findCommentCountAll();

    List<TbUserCommentInitPo> findStartCountAll();

    List<TbUserCommentInitPo> findLikeCountAll();

    List<TbUserCommentInitPo> tbUserCommentInitPos(TbUserCommentInitPo tbUserCommentInitPo);

    Integer commentCount(@Param("Integer") int integer);
}